<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="__EXTEND__/favicon.ico" >
    <link rel="Shortcut Icon" href="__EXTEND__/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="__EXTEND__/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__EXTEND__/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__EXTEND__/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__EXTEND__/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__EXTEND__/static/h-ui.admin/css/style.css" />
    <title>视频广告列表</title>
    <style>
        .content{
            font-size: small;
        }
    </style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 广告管理 <span class="c-gray en">&gt;</span> 视频广告列表
    <a class="btn btn-success radius r " id="btn-refresh" style="line-height:1.6em;margin-top:3px" href="{{:U('Admin/Ad/videoAdd')}}" title="添加视频广告" ><i class="Hui-iconfont">添加视频广告</i></a></nav>
<div class="page-container">
    <table class="table table-border table-bordered table-bg mt-20 table-sort table-hover">
        <thead>
        
        <tr class="text-c">
            <th style="width:10%">名称</th>
            <th style="width:10%">数量</th>
            <th style="width:8%">金额</th>
            <th style="width:6%">类型</th>
            <th style="width:9%">领取方式</th>
            <th style="width:5%">领取限额</th>
            <th style="width:15%">开始时间—结束时间</th>
            <th style="width:5%">状态</th>
            <th style="width:5%">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="vo">
            <tr class="text-c">
                <td>{{$vo['title']}} </td>
                <td >
                    {{$vo['quantity']}}
                    <!-- {{$vo.add_time|time_format}}<br> -->               
                </td>
                <td>{{$vo['money']}}</td>
                <td class="td-status"><switch name="vo['type']">
                        <case value="order">满减券</case>
                        <case value="goods">商品优惠券</case>
                        <case value="shipping">运费券</case>
                        <case value="all">优惠券</case>
                    </switch></td>
                 
                <td class="td-status">
                    <switch name="vo['get_type']">
                        <case value="day">按天领取</case>
                        <case value="person">按人领取</case>
                    </switch>
                </td>
                <td>{{$vo['user_quantity']}}</td>
                <td>{{$vo.start_time|time_format}} 至 {{$vo.end_time|time_format}}</td>
                <td class="td-status">
                    <switch name="vo['state']">
                        <case value="0">不开放</case>
                        <case value="1">开放</case>
                    </switch>
                </td>
                <td class="td-manage">
                   <a style="text-decoration:none" class="ml-5" href="{{:U('Admin/Order/orderInfo',array('id'=>$vo['order_id'],'p'=>$p))}}" title="查看">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a>
                </td>
            </tr>
        </foreach>
        <tr>
            <th scope="col" colspan="9">
                <span class="r">{{$page}}</span>
            </th>
        </tr>
        </tbody>
    </table>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__EXTEND__/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__EXTEND__/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__EXTEND__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__EXTEND__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__EXTEND__/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
 function exportExcel(){
        $("#searchform").attr('action','{{:U("Admin/Order/exportCsv")}}');
        $("#searchform").submit();
        $("#searchform").attr('action','{{:U("Admin/Order/activityList")}}');
    }
// function order_info(title,url){
//         layer_full(title,url);
//     }
</script>
</body>
</html>